const ROLE_ADMIN = 'admin';
const AdminRoutes = [
    {
        path: 'dashboard',
        name: 'adminDashboard',
        component: () => import('../views/admin/Dashboard.vue'),
        meta: { requiresAuth: true, role: ROLE_ADMIN }
    },
    {
        path: 'users',
        name: 'adminUsers',
        component: () => import('../views/admin/UserManage.vue'),
        meta: { requiresAuth: true, role: ROLE_ADMIN }
    },
    {
        path: 'assets',
        name: 'adminAssets',
        component: () => import('../views/admin/AssetManage.vue'),
        meta: { requiresAuth: true, role: ROLE_ADMIN }
    },
    {
        path: 'borrow',
        name: 'adminBorrow',
        component: () => import('../views/admin/BorrowManage.vue'),
        meta: { requiresAuth: true, role: ROLE_ADMIN }
    },
    {
        path: 'maintain',
        name: 'adminMaintain',
        component: () => import('../views/admin/MaintainManage.vue'),
        meta: { requiresAuth: true, role: ROLE_ADMIN }
    },
    {
        path: 'inventory',
        name: 'adminInventory',
        component: () => import('../views/admin/InventoryManage.vue'),
        meta: { requiresAuth: true, role: ROLE_ADMIN }
    },
    {
        path: 'sign',
        name: 'adminSign',
        component: () => import('../views/admin/SignManage.vue'),
        meta: { requiresAuth: true, role: ROLE_ADMIN }
    },
]

export default AdminRoutes